home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
menutest
/
mnutest.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
2KB
|
66 lines
VERSION 2.00
Begin Form TestForm
BorderStyle = 3 'Fixed Double
Caption = "MenuEnable Test"
ClientHeight = 870
ClientLeft = 2460
ClientTop = 3135
ClientWidth = 2625
Height = 1560
Left = 2400
LinkMode = 1 'Source
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
MousePointer = 12 'No Drop
ScaleHeight = 870
ScaleWidth = 2625
Top = 2505
Width = 2745
Begin CommandButton Command2
Caption = "Disable"
Height = 615
Left = 1440
MousePointer = 1 'Arrow
TabIndex = 1
Top = 120
Width = 975
End
Begin CommandButton Command1
Caption = "Enable"
Height = 615
Left = 240
MousePointer = 1 'Arrow
TabIndex = 0
Top = 120
Width = 975
End
Begin Menu topa
Caption = "TopA"
Begin Menu suba1
Caption = "SubA1"
End
Begin Menu suba2
Caption = "SubA2"
End
End
Begin Menu topb
Caption = "TopB"
End
Begin Menu topc
Caption = "TopC"
End
End
Sub Command1_Click ()
MenuEnable (TestForm.Hwnd), -1
End Sub
Sub Command2_Click ()
MenuEnable (TestForm.Hwnd), 0
End Sub